package org.dk.service.Impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.dk.mapper.TbContentMapper;
import org.dk.pojo.TbContent;
import org.dk.service.ContentService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
@org.springframework.stereotype.Service
public class ContentServiceImpl implements ContentService {
    @Autowired
    private TbContentMapper tbContentMapper;


    @Override
    public List<TbContent> selectByCateId() {
        return tbContentMapper.selectByCateId();
    }

    @Override
    public List<TbContent> selectRecommend() {
        return tbContentMapper.selectRecommend();
    }

    @Override
    public List<TbContent> favourite() {
        return tbContentMapper.favourite();
    }
}
